﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;

namespace IDAL
{
  public  interface IDepartmentDAL
    {

      /// <summary>
      /// 显示所有部门
      /// </summary>
      /// <returns></returns>
      List<Department> DeptShow();
      /// <summary>
      /// 部门添加
      /// </summary>
      /// <param name="mo"></param>
      /// <returns></returns>
      int DeptAdd(Department mo);
      /// <summary>
      /// 根据ID来显示部门详细讯息
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      List<Department> DeptSelectId(int id);

      /// <summary>
      /// 将状态改为启用
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      int DeptFull(int id);
      /// <summary>
      /// 将状态改为未启用
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      int DeptStop(int id);


      /// <summary>
      /// 根据id来删除部门
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      int DeptDel(int id);

      /// <summary>
      /// 修改部门信息
      /// </summary>
      /// <param name="mo"></param>
      /// <returns></returns>
      int DeptUptFull(Department mo);


    }
}
